package action.album;

import service.AlbumService;
import service.UserService;
import bean.Album;
import bean.User;

import com.opensymphony.xwork2.ActionSupport;

public class ViewAlbumAction extends ActionSupport {
	private User user;
	private Album album;
	private UserService userService;
	private AlbumService albumService;
	@Override
	public String execute() throws Exception {
		album=albumService.getAlbumById(album.getId());
		user=album.getUser();
		return SUCCESS;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Album getAlbum() {
		return album;
	}
	public void setAlbum(Album album) {
		this.album = album;
	}
	public UserService getUserService() {
		return userService;
	}
	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	public AlbumService getAlbumService() {
		return albumService;
	}
	public void setAlbumService(AlbumService albumService) {
		this.albumService = albumService;
	}
	
}
